package csel.controller.commands;

import csel.model.GameCommand;
import csel.model.Model;
import csel.view.GameViewport;

public class TradeDialogCommand implements GameCommand
{
	private final Model model;
	private final GameViewport gameViewport;
	
	public TradeDialogCommand(GameViewport gameViewport, Model model)
	{
		this.model = model;
		this.gameViewport = gameViewport;
	}

	public void execute()
	{
		gameViewport.accept( new LaunchTradeDialogCommand() );
	}
	
	private class LaunchTradeDialogCommand implements GameCommand
	{
		public void execute()
		{
			gameViewport.showTradeDialog();
		}
	}
}
